import request from '@/utils/request'

export function addOpen(data) {
  return request({
    url: '/opening',
    method: 'post',
    data
  })
}

export function editOpen(data) {
  return request({
    url: '/opening',
    method: 'put',
    data
  })
}

export function deleteOpen(opening_id) {
  return request({
    url: `/opening/${opening_id}`,
    method: 'DELETE'
  })
}

export function getOpen() {
  return request({
    url: '/opening',
    method: 'get'
  })
}

